﻿<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%option explicit%>
<%
Dim RZ_IN
RZ_IN=1
%>
<!--#include file="../conn.inc.asp" -->
<!--#include file="admin_inc/admin.function.asp" -->
<!--#include file="admin_inc/admin.sqlfunction.asp" -->
<%
'作者：山林客（ah_bill）
'博客：http://ruizhinet.blog.163.com
'网站：http://www.ruizhinet.cn
'本信息不会影响您网站的正常访问，请保留
checkadmin(4)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>移动分类</title>
<link type="text/css" href="style/style.css" rel="stylesheet" rev="stylesheet"/>
</head>
<body>
<%
dim myid,rst,sqlt,myname,myparentid,mypath,mylevel,myfenlei
myid=GetIntQueryString("id")
Set rst = Server.CreateObject("ADODB.Recordset")
sqlt = "select * from [c_type] where id="&myid
rst.open sqlt,conn,1,1
If rst.eof Or rst.bof Then 
response.redirect("showmsg.asp?from=type_list.asp&msg=NoRecord")
else
myname=rst("name")
myparentid=rst("parentid")
mypath=rst("path")
mylevel=rst("thelevel")
myfenlei=rst("fenlei")
End If 
rst.close
Set rst=Nothing 
%>
<table class="table_400" cellspacing="0" cellpadding="0">
<form method="post" action="type_save.asp">
<input type="hidden" name="act" value="movesave">	
<input type="hidden" name="frompath" value="<%=mypath%>">
<input type="hidden" name="fromid" value="<%=myid%>">
<input type="hidden" name="fenlei" value="<%=myfenlei%>">
<input type="hidden" name="fromparentid" value="<%=myparentid%>">
<tr>
	<th colspan="2">移动分类：<%=myname%></th>
</tr>
<tr class="row">
	<td>移动到</td>
	<td>
<select name="upper">
<%
If mylevel>2 then
%>
<option value='0_0,_1'>根</option>
<%
End If 
%>
<%
Call ShowTypeOptions("move_type",myid,mypath,myparentid,myfenlei,1)
%>
</select>
	</td>
</tr>
<tr class="row">
	<td colspan="2" class="tdcenter"><input type="submit" class="btn" value="保存"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="btn"  value="返回" onclick="javascript:location.href='type_list.asp'"/></td>
</tr>
</table>
</form>
</table>
</body>
</html>